﻿<Page
    x:Class="BlipSansBlop.MainMenu"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:BlipSansBlop"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
	<Page.Resources>
		<ControlTemplate x:Key="ButtonControlTemplate1" TargetType="Button">
			<Grid>
				<VisualStateManager.VisualStateGroups>
					<VisualStateGroup x:Name="CommonStates">
						<VisualState x:Name="Normal"/>
						<VisualState x:Name="PointerOver">
							<Storyboard>
								<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
									<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPointerOverForegroundThemeBrush}"/>
								</ObjectAnimationUsingKeyFrames>
							</Storyboard>
						</VisualState>
						<VisualState x:Name="Pressed">
							<Storyboard>
								<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
									<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPressedForegroundThemeBrush}"/>
								</ObjectAnimationUsingKeyFrames>
							</Storyboard>
						</VisualState>
						<VisualState x:Name="Disabled">
							<Storyboard>
								<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
									<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledForegroundThemeBrush}"/>
								</ObjectAnimationUsingKeyFrames>
							</Storyboard>
						</VisualState>
					</VisualStateGroup>
					<VisualStateGroup x:Name="FocusStates">
						<VisualState x:Name="Focused"/>
						<VisualState x:Name="Unfocused"/>
						<VisualState x:Name="PointerFocused"/>
					</VisualStateGroup>
				</VisualStateManager.VisualStateGroups>
				<ContentPresenter x:Name="ContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTransitions="{TemplateBinding ContentTransitions}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="197,6,202,2" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
			</Grid>
		</ControlTemplate>
		<Style x:Key="ButtonStyle1" TargetType="Button">
			<Setter Property="Background" Value="{StaticResource ButtonBackgroundThemeBrush}"/>
			<Setter Property="Foreground" Value="{StaticResource ButtonForegroundThemeBrush}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonBorderThemeBrush}"/>
			<Setter Property="BorderThickness" Value="{StaticResource ButtonBorderThemeThickness}"/>
			<Setter Property="Padding" Value="12,4,12,4"/>
			<Setter Property="HorizontalAlignment" Value="Left"/>
			<Setter Property="VerticalAlignment" Value="Center"/>
			<Setter Property="FontWeight" Value="SemiBold"/>
			<Setter Property="Template" Value="{StaticResource ButtonControlTemplate1}"/>
			<Setter Property="FontFamily" Value="Segoe UI"/>
			<Setter Property="FontSize" Value="48"/>
		</Style>
	</Page.Resources>

    <Grid Background="#FF43552B">
	<Grid Grid.Row="1">
        	<Grid.ColumnDefinitions>
        		<ColumnDefinition Width="8*"/>
        		<ColumnDefinition Width="5*"/>
        	</Grid.ColumnDefinitions>
        	<Image Margin="40" Source="Assets/splash.png"/>
        	<Border Grid.Column="1" Background="#C4000000" Padding="20,100,20,40">
        		<StackPanel>
        			<Button Content="Histoire" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontFamily="Stencil" FontSize="64" Foreground="#FF42542A" BorderBrush="{x:Null}" Tapped="History_Tapped"/>
					<Button Content="Nouveau Jeu" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontFamily="Stencil" FontSize="64" Foreground="#FF42542A" BorderBrush="{x:Null}" Tapped="NewGame_Tapped"/>
					<Button Content="Commandes" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontFamily="Stencil" FontSize="64" Foreground="#FF42542A" BorderBrush="{x:Null}" Tapped="Commands_Tapped"/>
					<Button Content="Credits" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FontFamily="Stencil" FontSize="64" Foreground="#FF42542A" BorderBrush="{x:Null}" Tapped="Credits_Tapped"/>
        		</StackPanel>
        	</Border>
        </Grid>
    </Grid>
</Page>